<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <f:view>
            <h:form>
                <table border="0" cellpadding="6">
                    <tbody>
                        <tr>
                            <td>Type :</td>
                            <td>
                                <h:selectOneMenu id="realEstateTypeID" value="#{searchController.selected.realEstateTypeID}" title="#{bundle.CreateRealEstateTitle_realEstateTypeID}" required="true" requiredMessage="#{bundle.CreateRealEstateRequiredMessage_realEstateTypeID}">
                                    <f:selectItems value="#{realEstateTypeController.itemsAvailableSelectOne}"/>
                                </h:selectOneMenu>
                            </td>
                        </tr>
                        <tr>
                            <td>City :</td>
                            <td>
                                <h:selectOneMenu id="cityID" value="#{searchController.selected.cityID}" title="#{bundle.CreateRealEstateTitle_cityID}" requiredMessage="#{bundle.CreateRealEstateRequiredMessage_cityID}">
                                    <f:selectItems value="#{citiesController.itemsAvailableSelectOne}"/>
                                </h:selectOneMenu>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Location :
                            </td>
                            <td>
                                <h:inputText id="location" value="#{searchController.location}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Price min:
                            </td>
                            <td>
                                <h:inputText id="priceMin" value="#{searchController.priceMin}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Price max :
                            </td>
                            <td>
                                <h:inputText id="priceMax" value="#{searchController.priceMax}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Deposit :
                            </td>
                            <td>
                                <h:inputText id="deposit" value="#{searchController.deposit}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Bedrooms :
                            </td>
                            <td>
                                <h:inputText id="bedrooms" value="#{searchController.bedrooms}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Bathrooms :
                            </td>
                            <td>
                                <h:inputText id="bathrooms" value="#{searchController.bathrooms}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                House Type:
                            </td>
                            <td>
                                <h:selectOneMenu id="houseTypeID" value="#{searchController.selected.houseTypeID}" title="#{bundle.CreateRealEstateTitle_houseTypeID}" >
                                    <f:selectItems value="#{houseTypeController.itemsAvailableSelectOne}"/>
                                </h:selectOneMenu>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>
                                <h:commandButton action="#{searchController.search()}" value="Search" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </h:form>            
        </f:view>
    </h:body>
</html>

